package com.jspxcms.core.service.impl;

import com.jspxcms.core.domain.Area;
import com.jspxcms.core.repository.AreaDao;
import com.jspxcms.core.service.AreaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AreaServiceImpl implements AreaService {
    @Override
    public List<Area> findByPid(Integer pid) {
        return dao.findByPid(pid);
    }

    @Autowired
    private AreaDao dao;
}
